import request from '@/utils/request'

// 查询法定假表列表
export function listLegalholiday(query) {
  return request({
    url: '/datalist/legalholiday/list',
    method: 'get',
    params: query
  })
}

// 查询法定假表详细
export function getLegalholiday(id) {
  return request({
    url: '/datalist/legalholiday/' + id,
    method: 'get'
  })
}

// 新增法定假表
export function addLegalholiday(data) {
  return request({
    url: '/datalist/legalholiday',
    method: 'post',
    data: data
  })
}

// 修改法定假表
export function updateLegalholiday(data) {
  return request({
    url: '/datalist/legalholiday',
    method: 'put',
    data: data
  })
}

// 删除法定假表
export function delLegalholiday(id) {
  return request({
    url: '/datalist/legalholiday/' + id,
    method: 'delete'
  })
}
